<link rel="stylesheet" href="./demo.css">
<div class="box box1">
    <img src="./imgs/img1.jpg" alt="">
    <ul>
        <li class="active"></li>
        <li></li>
        <li></li>
        <li></li>
        <li></li>
        <li></li>
    </ul>
</div>
<div class="box box2">
    <img src="./imgs/img1.jpg" alt="">
    <ul>
        <li class="active"></li>
        <li></li>
        <li></li>
        <li></li>
        <li></li>
        <li></li>
    </ul>
</div>
<script type="module">
    import Swiper from './demo.js'
    const box1 = new Swiper('.box1')
    const box2 = new Swiper('.box2')
</script>